package top.jlzhou.qqnews.model;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.RequestParameter;
import com.geccocrawler.gecco.annotation.Text;
import com.geccocrawler.gecco.spider.HtmlBean;

@SuppressWarnings("serial")
@Gecco(matchUrl="https://news.qq.com/a/{date}/{id}.htm",pipelines="defaultPipeline")
public class News implements HtmlBean {

	@RequestParameter("date")
	private String date;
	
	@RequestParameter("id")
	private String id;
	
	@Text
	@HtmlField(cssPath=".qq_main > .qq_article > .hd > h1")
	private String title;
	
	@Text
	@HtmlField(cssPath=".qq_main > .qq_article > .bd")
	private String body;

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
	
	
	

}
